package com.ruoyi.web.controller.applet;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.vo.HospitalSubscribeOrderVo;
import com.ruoyi.system.domain.vo.HospitalSubscribeScheduleDaysVo;
import com.ruoyi.system.service.IHospitalSubscribeScheduleDaysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 开放预约日Controller
 *
 * @author ruoyi
 * @date 2025-04-28
 */
@RestController
@RequestMapping("/applet/days")
public class HospitalSubscribeScheduleDaysAppletController extends BaseController {
    @Autowired
    private IHospitalSubscribeScheduleDaysService hospitalSubscribeScheduleDaysService;

    /**
     * 查询开放预约日列表 前端去分当天的时分秒小于结束的那个时间段显示灰色,前端分上午,下午
     * @response {@link HospitalSubscribeScheduleDaysVo}
     */
    @GetMapping("/getHospitalSubscribeScheduleDaysList")
    public TableDataInfo list() {
        List<HospitalSubscribeScheduleDaysVo> list = hospitalSubscribeScheduleDaysService.getHospitalSubscribeScheduleDaysList();
        return getDataTable(list);
    }


}
